﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevicesInt;

namespace SCS_350_snmp
{
    class VariableWithError
    {
        public string Oid { get; set; }
        public string Data { get; set; }
        public string OidTail { get; set; } //Id какой-то
        public OidInfo Info { get; set; }

        public override string ToString()
        {
            if(string.IsNullOrEmpty(OidTail) || OidTail == "0")
                return Info.Description.Header;
            else
            {
                return Info.Description.Header + ". Index - " + OidTail;
            }
        }

    }
}
